package com.lmb.mapper;

import com.lmb.bean.Lands;
import com.lmb.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LandsDao {

    int add(@Param("land") Lands land);

    int del(@Param("id")Integer id);

    int edit(@Param("land") Lands land);

    Lands one(@Param("id")Integer id);

    List<Lands> all(@Param("land") Lands land);

    int pageCount(@Param("land") Lands land);

    List<Lands> page(@Param("page") Page page, @Param("land") Lands land);
}
